import request from '@/utils/request'


// 查询工厂人员列表
export function factoryAuthList(query) {
  return request({
    url: '/factoryAuth/list',
    method: 'post',
    params: query
  })
}

//删除工厂职能
export function factoryAuthRemove(ids) {
  return request({
    url: '/factoryAuth/remove',
    method: 'post',
    data: ids
  })
}

//保存工厂职能
export function factoryAuthSave(data) {
  return request({
    url: '/factoryAuth/save',
    method: 'post',
    data: data
  })
}

// 查询商品详细
export function getFactoryAuth(id) {
  return request({
    url: '/factoryAuth/' + id,
    method: 'get'
  })
}

